<table class="table table-hover table-striped table-bordered" id="result_table">
<thead>
    <tr>
      <th> version name </th>
      <td> <?php echo $version->row()->name; ?> </td>
    </tr>

    <tr>
      <th valign="middle"> version descritpion </th>
      <td>  <?php echo $version->row()->description; ?> </td>
    </tr>

    <tr>
      <th> last update </th>
      <td>  <?php echo $version->row()->last_update; ?> </td>
    </tr>


<?php
  $cnt = 0;
  foreach ($result as $item) {
      $cnt++;
      $row = $item->row();
?>
      <tr>
        <td rowspan="5" align="center" valign="middle" width="32%">
          <div style="padding-top: 30px"> 
            <h2>
              Test
              <?php
                if ($cnt == 1) echo "One";
                if ($cnt == 2) echo "Two";
                if ($cnt == 3) echo "Three";
                if ($cnt == 4) echo "Four";
              ?>
            </h2>
          </div>
        </td>
        <td width="68%"> Search time: <?php echo $row->search_time; ?> </td>
      </tr>

      <tr>
        <td> Average number of result: <?php echo $row->average_result; ?> </td>
      </tr>

      <tr>
        <td> Average time: <?php echo $row->average_time; ?> ms </td>
      </tr>

      <tr>
        <td> Longest time: <?php echo $row->longest_time; ?> ms </td>
      </tr>

      <tr>
        <td> Shortest time: <?php echo $row->shortest_time; ?> ms </td>
      </tr>

<?php
  }
?>

	
</thead>
</table>
